home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / networking / mail / maildeliver.lha / MailDeliver_Project / MySMTPPost.doc < prev    next >
Encoding:
Text File  |  1992-09-02  |  1.7 KB  |  60 lines

  1.         **********************************
  2.         ***       MySMTPPost.doc      ***
  3.         **********************************
  4.  
  5.             ( BETA RELEASE )
  6.  
  7.            (c) 1994-95 Rafreider Andrea
  8.             All rights reserved.
  9.  
  10. Please read MailDeliver.doc first!
  11.  
  12. MySMTPPost is a small hack for people using Elm on their amiga systems with
  13. AmiTCP,InetUtils1.3 and MultiUser installed (you still need SMTPPost in 
  14. AmiTCP:bin/).
  15.  
  16. Just copy MySMTPPost (MailDeliver uses it when forwarding the incoming mail 
  17. to the new address specified in your $HOME/.forward if it is present) to
  18. AmiTCP:bin/ or inet:bin/ (or everywhere in your path).
  19.  
  20. Put the following line on your .elmrc :
  21.  
  22.     SendMail MySMTPPost <$MSG
  23.  
  24. instead of
  25.  
  26.     SendMail SMTPPost <$MSG
  27.  
  28. MySMTPPost checks the destination address in the "To:" header and if the
  29. destination address belongs to our amiga-system (you have to define the
  30. environment variables NODENAME,DOMAINNAME,HOSTNAME) it delivers the mail
  31. with a call to MailDeliver, else if the destination address belongs to
  32. an outside system, it sends the mail with a call to SMTPPost.
  33.  
  34. Suppose you want to mail to a local user named "pippo" with Elm.
  35. MySMTPPost recognizes as belonging to your amiga-system the following
  36. destination addresses:
  37.  
  38. To: pippo
  39. To: pippo@nodename
  40. To: pippo@nodename.domainname
  41.  
  42. where nodename is specified in the variable $NODENAME and domainname
  43. is specified in the environment variable $DOMAINNAME.
  44.  
  45. WARNING!
  46.  
  47. Elm usually changes multi-user protection bits so to call it in a safe way
  48. you should call it from a script like this:
  49.  
  50. ; StartElm script
  51.  
  52.     assign >NIL: UUMAIL: $HOME/MAIL/
  53.     userid >RAM:ENV/USER ; if you have not defined it
  54.     userid NAME >RAM:ENV/REALNAME ; if you have not defined it
  55.     elm
  56.     setowner $HOME/MAIL/#? $USER >NIL:
  57.     mprotect $HOME/MAIL/#? rwed >NIL:
  58.  
  59. ; End of script
  60.